﻿package kabam.rotmg.text.controller {
import kabam.rotmg.text.model.FontModel;
import kabam.rotmg.text.model.TextAndMapProvider;
import kabam.rotmg.text.view.TextFieldDisplay;

import robotlegs.bender.bundles.mvcs.Mediator;

public class TextFieldDisplayMediator extends Mediator {

    [Inject]
    public var textFieldDisplay:TextFieldDisplay;
    [Inject]
    public var fontModel:FontModel;
    [Inject]
    public var textAndMapProvider:TextAndMapProvider;


    override public function initialize():void {
        this.textFieldDisplay.setFont(this.fontModel.getFont());
        this.textFieldDisplay.setTextField(this.textAndMapProvider.getTextField());
        this.textFieldDisplay.setStringMap(this.textAndMapProvider.getStringMap());
    }


}
}
